package allen.test;

public class AutoBoxing128 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Integer a = 55;
		Integer b = 55;
		
		System.out.println("==:" + (a == b));

		//bigger than 128 will create a new instance
		Integer c = 255;
		Integer d = 255;
		System.out.println("==:" + (c == d));
		System.out.println("==:" + (c.equals(d)));
		
		System.out.println("smaller than? " + ( a<c));
		
		Float x = 4.35f;
		Float y = 4.35f;
		System.out.println("==:" + (x.equals(y)));
		System.out.println("smaller than? " + ( a<x));
	}

}
